package com.dailyblue.java.standard.interview.offer2;

import lombok.Data;

@Data
public class Card implements Comparable<Card>{
    private Integer id;
    private Integer money;

    @Override
    public int compareTo(Card o) {
        return this.getMoney()-o.getMoney();
    }
}
